//
//  UIColor+Extend.h
//  Community
//
//  Created by LiTengFei on 14/10/19.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

#define ColorCreate(r, g, b, a)        \
    ([UIColor colorWithRed:(r) / 255.0 \
                     green:(g) / 255.0 \
                      blue:(b) / 255.0 \
                     alpha:(a)])

#define Color(hex)                                        \
    ([UIColor colorWithRed:(hex >> 16 & 0x0000ff) / 255.0 \
                     green:(hex >> 8 & 0x0000ff) / 255.0  \
                      blue:(hex & 0x0000ff) / 255.0       \
                     alpha:1.0])

@interface UIColor (Extend)

+ (UIColor*)colorWithHex:(int)hex;

+ (UIColor*)colorFDD646;
+ (UIColor*)colorF2F2F2;
+ (UIColor*)colorB4B4B4;
@end
